package com.mtnz.njk.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Description:
 * @Author: ZPX 提问
 * @CreateDate: 2019/7/28 17:41
 * @Version: 1.0
 */
@Data
@Table(name = "ask")
public class AskEntity {
    @Id
    @Column(name = "ask_id")
    private String askId;
    private String message;
    @Column(name = "user_id")
    private String userId;
    private String reply;
    private String views;
    @Column(name = "create_date")
    private String createDate;
    private String month;
    private String address;
    private String status;
    private String examine;
    private String crop;
    @Column(name = "app_status")
    private Integer appStatus;
    //分享时间
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @Column(name = "share_time")
    private Date shareTime;

    @Column(name = "share_views")
    private Integer shareViews;
    //点击数
    @Column(name = "click_views")
    private Integer clickViews;

}
